package client;

import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.InputStreamReader;

import server.Command;

public class Client {


	public static void main(String args[]){
		try{
			BufferedReader in = new BufferedReader(
					new InputStreamReader(
							new DataInputStream(
									new FileInputStream("sisend.txt"))));
			String strLine;
			String url="http://localhost:5500/SENDTASK?urls=[";
			while ((strLine = in.readLine()) != null)   {
				url += "("+ strLine + ")";
			}
			url +="]";
			Command.openUrl(url);
			System.out.println(url);
			in.close();
		}catch (Exception e){e.printStackTrace();}
	}
}
